/// accountId : 2294411
/// accountName : "学校管理员"
/// accountRoleId : 2343314
/// areaLevel : 4
/// areaName : ""
/// companyShortName : ""
/// headVO : {"accountName":"学校管理员","timeInterval":"上午好","todayDate":"2021年11月18日","todayWeek":"星期四","weatherPic":"https://api-ks.qimingdaren.com/assets/weather/img/晴.gif"}
/// itemThirdId : 1438
/// roleCode : "XXGLY"
/// roleList : [{"accountId":2294411,"accountRoleId":2343314,"accountRoleItemVOList":[{"accountId":2294411,"accountRoleId":2343314,"accountRoleItemId":3369567,"itemThirdId":1438,"schoolId":1438,"sysAreaId":578487,"sysCompanyId":0,"sysRoleId":1}],"currentRole":true,"roleCode":"XXGLY","roleName":"学校管理员"}]
/// roleName : "学校管理员"
/// schoolId : 1438
/// schoolName : "宜宾市翠屏区天立学校"
/// sex : 0
/// showUnitName : "宜宾市翠屏区天立学校"
/// showVirtualInfo : "0"
/// sysAreaId : 578487
/// sysCompanyId : 0
/// token : "C43973F5C3EC6ACCF86F178794E4F983"
/// userName : "T00048927"
/// userType : 2

class TlyjUser {
  TlyjUser({
      int? accountId, 
      String? accountName, 
      int? accountRoleId, 
      int? areaLevel, 
      String? areaName, 
      String? companyShortName, 
      HeadVO? headVO, 
      int? itemThirdId, 
      String? roleCode, 
      List<RoleList>? roleList, 
      String? roleName, 
      int? schoolId, 
      String? schoolName, 
      int? sex, 
      String? showUnitName, 
      String? showVirtualInfo, 
      int? sysAreaId, 
      int? sysCompanyId, 
      String? token, 
      String? userName, 
      int? userType,}){
    _accountId = accountId;
    _accountName = accountName;
    _accountRoleId = accountRoleId;
    _areaLevel = areaLevel;
    _areaName = areaName;
    _companyShortName = companyShortName;
    _headVO = headVO;
    _itemThirdId = itemThirdId;
    _roleCode = roleCode;
    _roleList = roleList;
    _roleName = roleName;
    _schoolId = schoolId;
    _schoolName = schoolName;
    _sex = sex;
    _showUnitName = showUnitName;
    _showVirtualInfo = showVirtualInfo;
    _sysAreaId = sysAreaId;
    _sysCompanyId = sysCompanyId;
    _token = token;
    _userName = userName;
    _userType = userType;
}

  TlyjUser.fromJson(dynamic json) {
    _accountId = json['accountId'];
    _accountName = json['accountName'];
    _accountRoleId = json['accountRoleId'];
    _areaLevel = json['areaLevel'];
    _areaName = json['areaName'];
    _companyShortName = json['companyShortName'];
    _headVO = json['headVO'] != null ? HeadVO.fromJson(json['headVO']) : null;
    _itemThirdId = json['itemThirdId'];
    _roleCode = json['roleCode'];
    if (json['roleList'] != null) {
      _roleList = [];
      json['roleList'].forEach((v) {
        _roleList?.add(RoleList.fromJson(v));
      });
    }
    _roleName = json['roleName'];
    _schoolId = json['schoolId'];
    _schoolName = json['schoolName'];
    _sex = json['sex'];
    _showUnitName = json['showUnitName'];
    _showVirtualInfo = json['showVirtualInfo'];
    _sysAreaId = json['sysAreaId'];
    _sysCompanyId = json['sysCompanyId'];
    _token = json['token'];
    _userName = json['userName'];
    _userType = json['userType'];
  }
  int? _accountId;
  String? _accountName;
  int? _accountRoleId;
  int? _areaLevel;
  String? _areaName;
  String? _companyShortName;
  HeadVO? _headVO;
  int? _itemThirdId;
  String? _roleCode;
  List<RoleList>? _roleList;
  String? _roleName;
  int? _schoolId;
  String? _schoolName;
  int? _sex;
  String? _showUnitName;
  String? _showVirtualInfo;
  int? _sysAreaId;
  int? _sysCompanyId;
  String? _token;
  String? _userName;
  int? _userType;

  int? get accountId => _accountId;
  String? get accountName => _accountName;
  int? get accountRoleId => _accountRoleId;
  int? get areaLevel => _areaLevel;
  String? get areaName => _areaName;
  String? get companyShortName => _companyShortName;
  HeadVO? get headVO => _headVO;
  int? get itemThirdId => _itemThirdId;
  String? get roleCode => _roleCode;
  List<RoleList>? get roleList => _roleList;
  String? get roleName => _roleName;
  int? get schoolId => _schoolId;
  String? get schoolName => _schoolName;
  int? get sex => _sex;
  String? get showUnitName => _showUnitName;
  String? get showVirtualInfo => _showVirtualInfo;
  int? get sysAreaId => _sysAreaId;
  int? get sysCompanyId => _sysCompanyId;
  String? get token => _token;
  String? get userName => _userName;
  int? get userType => _userType;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['accountId'] = _accountId;
    map['accountName'] = _accountName;
    map['accountRoleId'] = _accountRoleId;
    map['areaLevel'] = _areaLevel;
    map['areaName'] = _areaName;
    map['companyShortName'] = _companyShortName;
    if (_headVO != null) {
      map['headVO'] = _headVO?.toJson();
    }
    map['itemThirdId'] = _itemThirdId;
    map['roleCode'] = _roleCode;
    if (_roleList != null) {
      map['roleList'] = _roleList?.map((v) => v.toJson()).toList();
    }
    map['roleName'] = _roleName;
    map['schoolId'] = _schoolId;
    map['schoolName'] = _schoolName;
    map['sex'] = _sex;
    map['showUnitName'] = _showUnitName;
    map['showVirtualInfo'] = _showVirtualInfo;
    map['sysAreaId'] = _sysAreaId;
    map['sysCompanyId'] = _sysCompanyId;
    map['token'] = _token;
    map['userName'] = _userName;
    map['userType'] = _userType;
    return map;
  }

}

/// accountId : 2294411
/// accountRoleId : 2343314
/// accountRoleItemVOList : [{"accountId":2294411,"accountRoleId":2343314,"accountRoleItemId":3369567,"itemThirdId":1438,"schoolId":1438,"sysAreaId":578487,"sysCompanyId":0,"sysRoleId":1}]
/// currentRole : true
/// roleCode : "XXGLY"
/// roleName : "学校管理员"

class RoleList {
  RoleList({
      int? accountId, 
      int? accountRoleId, 
      List<AccountRoleItemVOList>? accountRoleItemVOList, 
      bool? currentRole, 
      String? roleCode, 
      String? roleName,}){
    _accountId = accountId;
    _accountRoleId = accountRoleId;
    _accountRoleItemVOList = accountRoleItemVOList;
    _currentRole = currentRole;
    _roleCode = roleCode;
    _roleName = roleName;
}

  RoleList.fromJson(dynamic json) {
    _accountId = json['accountId'];
    _accountRoleId = json['accountRoleId'];
    if (json['accountRoleItemVOList'] != null) {
      _accountRoleItemVOList = [];
      json['accountRoleItemVOList'].forEach((v) {
        _accountRoleItemVOList?.add(AccountRoleItemVOList.fromJson(v));
      });
    }
    _currentRole = json['currentRole'];
    _roleCode = json['roleCode'];
    _roleName = json['roleName'];
  }
  int? _accountId;
  int? _accountRoleId;
  List<AccountRoleItemVOList>? _accountRoleItemVOList;
  bool? _currentRole;
  String? _roleCode;
  String? _roleName;

  int? get accountId => _accountId;
  int? get accountRoleId => _accountRoleId;
  List<AccountRoleItemVOList>? get accountRoleItemVOList => _accountRoleItemVOList;
  bool? get currentRole => _currentRole;
  String? get roleCode => _roleCode;
  String? get roleName => _roleName;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['accountId'] = _accountId;
    map['accountRoleId'] = _accountRoleId;
    if (_accountRoleItemVOList != null) {
      map['accountRoleItemVOList'] = _accountRoleItemVOList?.map((v) => v.toJson()).toList();
    }
    map['currentRole'] = _currentRole;
    map['roleCode'] = _roleCode;
    map['roleName'] = _roleName;
    return map;
  }

}

/// accountId : 2294411
/// accountRoleId : 2343314
/// accountRoleItemId : 3369567
/// itemThirdId : 1438
/// schoolId : 1438
/// sysAreaId : 578487
/// sysCompanyId : 0
/// sysRoleId : 1

class AccountRoleItemVOList {
  AccountRoleItemVOList({
      int? accountId, 
      int? accountRoleId, 
      int? accountRoleItemId, 
      int? itemThirdId, 
      int? schoolId, 
      int? sysAreaId, 
      int? sysCompanyId, 
      int? sysRoleId,}){
    _accountId = accountId;
    _accountRoleId = accountRoleId;
    _accountRoleItemId = accountRoleItemId;
    _itemThirdId = itemThirdId;
    _schoolId = schoolId;
    _sysAreaId = sysAreaId;
    _sysCompanyId = sysCompanyId;
    _sysRoleId = sysRoleId;
}

  AccountRoleItemVOList.fromJson(dynamic json) {
    _accountId = json['accountId'];
    _accountRoleId = json['accountRoleId'];
    _accountRoleItemId = json['accountRoleItemId'];
    _itemThirdId = json['itemThirdId'];
    _schoolId = json['schoolId'];
    _sysAreaId = json['sysAreaId'];
    _sysCompanyId = json['sysCompanyId'];
    _sysRoleId = json['sysRoleId'];
  }
  int? _accountId;
  int? _accountRoleId;
  int? _accountRoleItemId;
  int? _itemThirdId;
  int? _schoolId;
  int? _sysAreaId;
  int? _sysCompanyId;
  int? _sysRoleId;

  int? get accountId => _accountId;
  int? get accountRoleId => _accountRoleId;
  int? get accountRoleItemId => _accountRoleItemId;
  int? get itemThirdId => _itemThirdId;
  int? get schoolId => _schoolId;
  int? get sysAreaId => _sysAreaId;
  int? get sysCompanyId => _sysCompanyId;
  int? get sysRoleId => _sysRoleId;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['accountId'] = _accountId;
    map['accountRoleId'] = _accountRoleId;
    map['accountRoleItemId'] = _accountRoleItemId;
    map['itemThirdId'] = _itemThirdId;
    map['schoolId'] = _schoolId;
    map['sysAreaId'] = _sysAreaId;
    map['sysCompanyId'] = _sysCompanyId;
    map['sysRoleId'] = _sysRoleId;
    return map;
  }

}

/// accountName : "学校管理员"
/// timeInterval : "上午好"
/// todayDate : "2021年11月18日"
/// todayWeek : "星期四"
/// weatherPic : "https://api-ks.qimingdaren.com/assets/weather/img/晴.gif"

class HeadVO {
  HeadVO({
      String? accountName, 
      String? timeInterval, 
      String? todayDate, 
      String? todayWeek, 
      String? weatherPic,}){
    _accountName = accountName;
    _timeInterval = timeInterval;
    _todayDate = todayDate;
    _todayWeek = todayWeek;
    _weatherPic = weatherPic;
}

  HeadVO.fromJson(dynamic json) {
    _accountName = json['accountName'];
    _timeInterval = json['timeInterval'];
    _todayDate = json['todayDate'];
    _todayWeek = json['todayWeek'];
    _weatherPic = json['weatherPic'];
  }
  String? _accountName;
  String? _timeInterval;
  String? _todayDate;
  String? _todayWeek;
  String? _weatherPic;

  String? get accountName => _accountName;
  String? get timeInterval => _timeInterval;
  String? get todayDate => _todayDate;
  String? get todayWeek => _todayWeek;
  String? get weatherPic => _weatherPic;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['accountName'] = _accountName;
    map['timeInterval'] = _timeInterval;
    map['todayDate'] = _todayDate;
    map['todayWeek'] = _todayWeek;
    map['weatherPic'] = _weatherPic;
    return map;
  }

}